package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.cloud.common.orm.BaseEntity;
import java.io.Serializable;
import java.time.LocalDate;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 摄像头抓图策略关联表
 * </p>
 *
 * @author kinggu
 * @since 2025-10-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hw_camera_snapshot_relation")
public class HwCameraSnapshotRelation extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 摄像头ID
     */
    @TableField("camera_id")
    private Long cameraId;

    /**
     * 抓图策略ID
     */
    @TableField("strategy_id")
    private Long strategyId;

    /**
     * 生效日期
     */
    @TableField("effective_date")
    private LocalDate effectiveDate;

    /**
     * 失效日期
     */
    @TableField("expiry_date")
    private LocalDate expiryDate;

    /**
     * 逻辑删除: 0-未删除, 1-已删除
     */
    @TableField("is_deleted")
    private Boolean deleted;

    public static final String CameraId = "camera_id";
    public static final String StrategyId = "strategy_id";
    public static final String EffectiveDate = "effective_date";
    public static final String ExpiryDate = "expiry_date";
    public static final String Deleted = "is_deleted";

} 